package com.lwl.service.impl.mht;

import com.lwl.entity.mht.TMhtRecordDetail;
import com.lwl.service.mht.TMhtRecordDetailService;
import com.lwl.dao.mht.TMhtRecordDetailMapper;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TMhtRecordDetail)表服务实现类
 *
 * @author Lei
 * @since 2022-10-29 10:53:11
 */
@Service
public class TMhtRecordDetailServiceImpl implements TMhtRecordDetailService {
   @Autowired
   private TMhtRecordDetailMapper tMhtRecordDetailDao;

   @Override
   public boolean insertDetails(List<TMhtRecordDetail> details) {
      int i = 0;
      for (TMhtRecordDetail detail : details) {
         i+=tMhtRecordDetailDao.insert(detail);
      }
      return details.size()==i;
   }
}
